var hostdomain = window.location.host;
hostdomain = 'http://www'+hostdomain.substr(hostdomain.indexOf('.'));

var cssstr = '<style>#lianzhan_head{height:55px;margin:0 auto;max-width:640px;min-width:320px}#lianzhan_head .lianzhan_headBox{background:#fff url("http://www.667691.com/pinpai_images/logo_wap.png") no-repeat scroll left center / 20% 45px;box-shadow:2px 2px 5px #d5d5d5;padding-left:20%;}#lianzhan_head .lianzhan_headBox p{height:55px;line-height:55px;overflow:hidden;width:100%}#lianzhan_head .lianzhan_headBox p a{color:#333;display:block;float:left;font-size:14px;padding:0 6px;text-decoration:none}</style></script>';

var domain = hostdomain.substr(hostdomain.indexOf('.')+1);
console.log(domain);
var arr = ['667683.com','665817.com','665723.com','661793.co','661852.com']

if(!in_array(domain,arr)){
var html = '<div id="lianzhan_head"><div class="lianzhan_headBox"><p style="margin-top: 0px; margin-bottom: 0px;"><a href="'+hostdomain+'">首页</a><a  href="'+hostdomain+'/fzxb/">服装鞋包</a><a  href="'+hostdomain+'/cyms/">餐饮美食</a><a  href="'+hostdomain+'/mrys/">美容养生</a><a  href="'+hostdomain+'/lpsp/">礼品饰品</a><a  href="'+hostdomain+'/wljy/">网络教育</a><a  href="'+hostdomain+'/shfw/">生活服务</a><a  href="'+hostdomain+'/jjzs/">家居装饰</a><a  href="'+hostdomain+'/hbjx/">环保机械</a></p>	</div></div>';
}else{
var html = '<div id="lianzhan_head"><div class="lianzhan_headBox"><p style="margin-top: 0px; margin-bottom: 0px;"><a href="'+hostdomain+'">首页</a><a  href="'+hostdomain+'/index.php/Ad_category/index/cat_id/1">品牌服饰</a><a  href="'+hostdomain+'/index.php/Ad_category/index/cat_id/3">餐饮美食</a><a  href="'+hostdomain+'/index.php/Ad_category/index/cat_id/2">美容养生</a><a  href="'+hostdomain+'/index.php/Ad_category/index/cat_id/4">礼品饰品</a><a  href="'+hostdomain+'/index.php/Ad_category/index/cat_id/25">休闲中心</a><a  href="'+hostdomain+'/index.php/Ad_category/index/cat_id/28">时尚饮品</a><a  href="'+hostdomain+'/index.php/Ad_category/index/cat_id/5">家居装饰</a><a  href="'+hostdomain+'/index.php/Ad_category/index/cat_id/6">环保机械</a></p>	</div></div>';
}
document.write(cssstr+html);


function in_array(search,array){
    for(var i in array){
        if(array[i]==search){
            return true;
        }
    }
    return false;
}
